package xyz.xiezc.mzix.schedule.rpc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.xiezc.mzix.common.api.Schedule;
import xyz.xiezc.mzix.common.dto.PageDTO;
import xyz.xiezc.mzix.schedule.service.ScheduleService;

import java.util.Map;

@RestController
public class ScheduleRpc implements Schedule {

    @Autowired
    ScheduleService scheduleService;

    @Override
    public void finish(PageDTO pageDTO) {
        scheduleService.finish(pageDTO);
    }

    @Override
    public String getSession(String code, String key) {
        return scheduleService.getSession(code, key);
    }

    @Override
    public Boolean setSession(String code, String key, String value) {
        return scheduleService.setSession(code, key, value);
    }
}
